/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.core.preference;

import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;

import com.cea.papyrus.profile.Activator;
import com.cea.papyrus.profile.preference.ProfilePreferenceConstants;

/**
 * Defines the Papyrus Stereotypes preference page.
 */
public class PapyrusStereotypesPreferencePage extends FieldEditorPreferencePage
implements IWorkbenchPreferencePage {

	/** Debug channel */
	private final int channel = 205;

	/**
	 * The Constructor.
	 */
	public PapyrusStereotypesPreferencePage() {
		super(GRID);
		setPreferenceStore(Activator.getDefault().getPreferenceStore());
		setDescription("Stereotypes Preferences");
	}

	/**
	 * {@inheritDoc}}
	 */
	public void init(IWorkbench workbench) {
	}


	/**
	 * @{inheritDoc}
	 */
	@Override
	protected void createFieldEditors() {
		addField(new BooleanFieldEditor(
				ProfilePreferenceConstants.EXPAND_STERETOYPES_TREE,
				"Expand the stereotypes tree in the profile properties tabs",
				getFieldEditorParent()
				));
	}
}

